import request from '@/utils/request'
import data from '@/views/pdf/content'
//查看某个日期的排班信息
export function getshiftListByDay(data) {
  return request({
    url: '/iss/shift-schedule/listByDay',
    method: 'get',
    params:{
      date:data.date
    }
  })
}

// /查看某周的排班信息
export function getshiftListByWeek(data) {
  return request({
    url: '/iss/shift-schedule/listByWeek',
    method: 'get',
    params:{
      date:data.date
    }
  })
}

//排出给定日期的排班表
export function rearrangeByDay(data) {
  return request({
    url: '/iss/shift-schedule/scheduleByDay',
    method: 'get',
    params:{
      date:data.date
    }
  })
}

//排出某周的排班信息
export function rearrangeByWeek(data) {
  return request({
    url: '/iss/shift-schedule/scheduleByWeek',
    method: 'get',
    params:{
      date:data.date
    }
  })
}

//手动排班信息修改
export function updateSchedule(data) {
  return request({
    url: '/iss/shift-schedule/updateSchedule',
    method: 'post',
    data
  })
}

//员工查看排班信息接口（一周的个人排班信息）
export function listWeekByEmp(data) {
  return request({
    url: '/iss/shift-schedule/listWeekByEmp',
    method: 'get',
    params:{
      date:data.date
    }
  })
}


//推荐员工
export function recommendEmps(data) {
  return request({
    url: '/iss/shift-schedule/recommendEmps',
    method: 'post',
    data
  })
}


